using System;
using System.Collections.Generic;
using System.Security.Permissions;
using System.Data;
using Microsoft.Dynamics.Framework.Reports;
public partial class Report2
{
    [DataMethod(), AxSessionPermission(SecurityAction.Assert)]
    public static System.Data.DataTable GetCustTableSRS(int custgroup)
    {
        var ranges = new Dictionary<string, object>
        {
            {"CustTable.CustGroup",custgroup}
        };

        var dt = Microsoft.Dynamics.Framework.Reports.AxQuery.ExecuteQuery("Select * from CustTableSRS", ranges);
        return dt;
    }

    [DataMethod(), AxSessionPermission(SecurityAction.Assert)]
    public static string GetLabel(string labelid)
    {
        var ax = Microsoft.Dynamics.Framework.Reports.SessionManager.GetSession();
        var result = ax.CallStaticClassMethod("SysLabel", "labelId2String2", labelid);
        return result.ToString();
    }

}
